package com.googlecode.connectlet.machine.provider.signature;

import com.googlecode.connectlet.crypto.digest.DigestStream;
import com.googlecode.connectlet.crypto.digest.MD5Stream;
import com.googlecode.connectlet.crypto.rsa.MD5RSAStream;
import com.googlecode.connectlet.machine.provider.MachineKey;
import com.googlecode.connectlet.machine.provider.key.MachinePrivateKey;

public class MachineMD5RSAStream extends MachineSignatureStream {
	private static final long serialVersionUID = 1L;

	public MachineMD5RSAStream(MachinePrivateKey privateKey, MachineKey machineKey) {
		super(privateKey, machineKey);
	}

	@Override
	protected DigestStream getDigestStream() {
		return new MD5Stream();
	}

	@Override
	protected byte[] getHeader() {
		return MD5RSAStream.MD5RSA_HEADER;
	}
}